﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HS.Domain.EF;
using System.Data.Entity;

namespace HS.Business.Security
{    
    public class ServicioBusiness
    {
       HomeSolutionsDBEntities context = new HomeSolutionsDBEntities();

       public List<Servicio> GetEntities(bool? rowStatus)
       {
           var data = context.Servicio
                    .Where(p => (rowStatus != null ? p.RowStatus == rowStatus : p.RowStatus == true))
                    .ToList();

           return data;
       }
    }
}
